#define _CRT_SECURE_NO_WARNINGS 1
#pragma warning(disable:6031)
#include <stdio.h>

int if_left_move(char* str1, char* str2)
{
	int len1 = strlen(str1);
	int len2 = strlen(str2);
	if (len1 != len2)
		return 1;
	strncat(str1, str1, 6);
	if ((strstr(str1, str2)) == NULL)
		return 1;
	else
		return 0;
}

int main()
{
	char arr1[20] = "abcdef";
	char arr2[] = "defax";
	int ret = if_left_move(arr1, arr2);
	if (ret == 0)
		printf("yes\n");
	else
		printf("no\n");
	return 0;
}
